import { Column } from 'typeorm';
import { BaseEntity } from './Base';
import { EntityModel } from '@midwayjs/orm';
@EntityModel('users')
export class Users extends BaseEntity {
  @Column({ comment: '用户名' })
  username: string;

  @Column({ comment: '密码(md5加密)' })
  password: string;

  @Column({ comment: '真实姓名', nullable: true })
  realname: string;

  @Column({ comment: '昵称', nullable: true })
  nickname: string;

  @Column({ comment: '角色Id(1,2,3)', nullable: true })
  roleId: string;
}
